#ifndef __UICALCULATOR__H__
#define __UICALCULATOR__H__

#include <MZFCLIB.h>

#include	"iUiButton.h"
#include	"UiStatusBar.h"

typedef enum _tagCalculatorBtnDisplay
{
	CALCULATOR_CLOSE = 0,
	CALCULATOR_NUM_SEVEN,
	CALCULATOR_NUM_EIGHT,
	CALCULATOR_NUM_NINE,
	CALCULATOR_CLEAN_ONE,
	CALCULATOR_CLEAN_ALL,
	CALCULATOR_NUM_FOUR,
	CALCULATOR_NUM_FIVE,
	CALCULATOR_NUM_SIX,
	CALCULATOR_MULTIPLY,
	CALCULATOR_DIVIDE,
	CALCULATOR_NUM_ONE,
	CALCULATOR_NUM_TWO,
	CALCULATOR_NUM_THREE,
	CALCULATOR_SUBTRACT,
	CALCULATOR_ROOT,
	CALCULATOR_NUM_ZERO,
	CALCULATOR_DOT,
	CALCULATOR_ADD,
	CALCULATOR_EQUAL,
	MAX_CALCULATOR_BTN,
} CALCULATOR_BTN;

class UiCalculator :
	public UiWin
{
public:
	UiCalculator();
	~UiCalculator();

	BOOL InitUiWin(void);

	void PaintWin(HDC hdc, RECT* prcWin, RECT* prcUpdate);
	virtual int OnLButtonDown(UINT fwKeys, int xPos, int yPos);
	virtual int OnLButtonUp(UINT fwKeys, int xPos, int yPos);
	virtual void DeleteImages();

	void LoadiInterItem();
	BOOL InitImages();
public:
	iUiButton m_BtnCalculator[MAX_CALCULATOR_BTN];
	ImagingHelper	*m_CalculatorBG;

	HDC				m_hBakDC;
	HBITMAP			m_hBitmapBakDC;
//	HWND	m_hWnd;
	UiStatic	m_StaticArithmetic;


};

#endif